# coding:utf-8
import shutil
import sys
from pathlib import Path

PROJECT_ROOT = Path(__file__).parent.parent

APPDATA_DIR = PROJECT_ROOT / 'AppData'
RESOURCES_DIR = PROJECT_ROOT / 'resources'
TOOLS_DIR = PROJECT_ROOT / 'tools'
PLUGINS_DIR = PROJECT_ROOT / 'plugins'
PLUGINS_DIR.mkdir(exist_ok=True)

CONFIG_DIR = APPDATA_DIR / 'config'
CACHE_DIR = APPDATA_DIR / 'cache'
LOG_DIR = APPDATA_DIR / 'log'

CONFIG_FILE = CONFIG_DIR / 'config.json'
PLUGIN_CONFIG_FILE = PLUGINS_DIR / 'plugin_config.json'


# 以下为常量定义
APP_NAME = 'Python Tools Box'
YEAR = 2025
AUTHOR = 'chiyaun'
VERSION = '1.0.0'
COPYRIGHT = f'版权所有 © {YEAR}, 当前版本所有者：{AUTHOR}'
PROJECT_URL = 'https://gitee.com/chiyaun/python-tools-box'
HELP_URL = 'https://gitee.com/chiyaun/python-tools-box/blob/master/README.md'
FEEDBACK_URL = 'https://gitee.com/chiyaun/python-tools-box/issues/new'
